<?php if(!defined('PHPOK_SET')){die('<h3>Error...</h3>');}?><div id="user_cp"></div>
<script type="text/javascript">func_php("usercp",js_usercp,"user_cp");</script>
<?php $news = phpok_c_list("news");?>
<h3><?php echo $news[me][cate_name];?></h3>
<div class="border-lrb">
<ul>
	<?php $_i=0;$news[rslist]=(is_array($news[rslist]))?$news[rslist]:array();foreach($news[rslist] AS  $key=>$value){$_i++; ?>
	<li><a href="<?php echo msg_url($value);?>" title="<?php echo $value[title];?>">·<?php echo sys_cutstring($value[title],30,'…');?></a></li>
	<?php } ?>
</ul>
</div>
<?php unset($news);?>
<div class="line"></div>

<h3>站内搜索</h3>
<div class="border-lr"><?php echo sys_search($mid,$cid,$keywords,$ext_keywords);?></div>
<div class="bottom"></div>
<div class="line"></div>



<?php $procate = phpok('procate');?>
<h3><?php echo $procate[me][cate_name];?></h3>
<div class="border-lrb">
<ul>
	<?php $_i=0;$procate[rslist]=(is_array($procate[rslist]))?$procate[rslist]:array();foreach($procate[rslist] AS  $key=>$value){$_i++; ?>
	<li><a href="<?php echo list_url($value);?>" title="<?php echo $value[title];?>"><?php echo $value[cate_name];?></a></li>
	<?php } ?>
</ul>
</div>
<?php unset($procate);?>

<script type="text/javascript">
function subscribers_email()
{
	var email = $("#subscribers_email").attr("value");
	if(!email)
	{
		alert("邮箱不允许为空！");
		return false;
	}
	var str_reg=/^\w+((-\w+)|(\.\w+))*\@{1}\w+\.{1}\w{2,4}(\.{0,1}\w{2}){0,1}/ig;
	if(email.search(str_reg) == -1)
	{
		alert("邮箱格式不正确！");
		return false;
	}
	return true;
}
</script>

<div class="line"></div>
<h3>邮件订阅</h3>
<div class="border-lr">
<form method="post" action="<?php echo site_url('subscribers,setok');?>" onsubmit="return chk_email()">
<input type="hidden" name="goback" value="<?php echo site_url('index');?>" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td width="21%" height="35">邮箱：</td>
	<td width="79%"><input type="text" name="email" id="subscribers_email" /></td>
</tr>
<tr>
<td height="35" colspan="2"><input type="submit" value="提 交" class="but01" /></td>
</tr>
</table>
</form>
</div>
<div class="bottom"></div>